# -*- coding: utf-8 -*-
from google.appengine.ext import db
from google.appengine.api import datastore
from datetime import datetime


class Category(db.Model):
	cnname=db.StringProperty()
	enname=db.StringProperty()
class Story(db.Model):
	name = db.StringProperty()
	author = db.StringProperty()
	createdate = db.StringProperty()
	is_over = db.BooleanProperty(default=False)
	description = db.TextProperty(default=None)
	storylength= db.IntegerProperty(default=0)
	storyhref = db.StringProperty(default=None)
	clickcount = db.IntegerProperty(default=0)
	updatedate = db.DateTimeProperty(auto_now_add=True)

